<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" session="false"%>
<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri = "http://www.springframework.org/tags" prefix = "s"%>
<%@ taglib uri = "http://www.springframework.org/tags/form" prefix = "sf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<style>
    	lable.error{color:red}
    	input.error{background-color: #ffcccc}
    </style>
	<title>Spittr</title>
</head>
<body>
	<h1><s:message code="Register"></s:message></h1>
	<!-- if you don't point the action, then the request going to Where do you come from  -->
	<sf:form method="POST" commandName="spittler">
		<sf:label path="firstName" cssErrorClass="error">First Name : </sf:label>
		<sf:input type="text" path="firstName" cssErrorClass="error"/> 
		<sf:errors path="firstName"></sf:errors><br/>
		Last Name : <sf:input type="text" path="lastName"/><br/>
		Username : <sf:input type="text" path="userName"/><br/>
		Password : <sf:input type="password" path="password"/><br/>
		
		<input type="submit" value="Register">
	</sf:form>
	
	<!-- Jsp Version has problem, temporarily down. -->
	<%-- <s:url href="/spitter/register" var="spittlerUrl" scope="request" value="">
		<s:param name="max" value="20"/>
		<s:param name="min" value="5"/>
	</s:url>
	<a href='${spittlerUrl }'>注册开始</a>  --%>

</body>
</html>